package com.zg.entity;


import com.btzh.mis.core.dao.annotation.Persist;
import com.btzh.mis.core.dao.annotation.Table;

import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.Date;

/**
 * 系统用户信息实体类
 * @author 檀志波
 * 2016.6.8
 */
@XmlRootElement
@Table(table = "users", id = "userId", idField = "user_id", sequence = "users_seq")
public class Users implements Serializable{
    private static final long serialVersionUID = 3722271020524420320L;

    @Persist({Persist.UNINSERTABLE,Persist.UNUPDATABLE})
    private  Integer rn;//序号
	private Integer userId;//用户ID
    private String roleId;//角色Id
    private String lxdh;//联系电话
    private String jtzz;//家庭住址
    private Number deptNum;//部门编号
    private String zp;//照片
    private String xzbm;//行政编码
    private String  cjz;//创建人
    private String xgz;//修改人
    private String pwd;//密码
    private String userName;//用户姓名
    private String xb;//性别
    private String sfzhm;//	份证号码
    private Date cjsj;// 创建时间
    private Date xgsj;// 创建时间
    private String salt;//密码盐
    private String deptName;
    @Persist({Persist.UNINSERTABLE,Persist.UNUPDATABLE})
    private String newPassword;
    @Persist({Persist.UNINSERTABLE,Persist.UNUPDATABLE})
    private String type;//单点登录，访问页面类型：基础信息、法律服务、人民调解、法制宣传、综合查询、工作台账、统计报表
    @Persist({Persist.UNINSERTABLE,Persist.UNUPDATABLE})
    private String id;
    @Persist({Persist.UNINSERTABLE,Persist.UNUPDATABLE})
    private String pid;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    public Integer getRn() {
        return rn;
    }

    public void setRn(Integer rn) {
        this.rn = rn;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getLxdh() {
        return lxdh;
    }

    public void setLxdh(String lxdh) {
        this.lxdh = lxdh;
    }

    public String getJtzz() {
        return jtzz;
    }

    public void setJtzz(String jtzz) {
        this.jtzz = jtzz;
    }

    public Number getDeptNum() {
        return deptNum;
    }

    public void setDeptNum(Number deptNum) {
        this.deptNum = deptNum;
    }

    public String getZp() {
        return zp;
    }

    public void setZp(String zp) {
        this.zp = zp;
    }

    public String getXzbm() {
        return xzbm;
    }

    public void setXzbm(String xzbm) {
        this.xzbm = xzbm;
    }

    public String getCjz() {
        return cjz;
    }

    public void setCjz(String cjz) {
        this.cjz = cjz;
    }

    public String getXgz() {
        return xgz;
    }

    public void setXgz(String xgz) {
        this.xgz = xgz;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getXb() {
        return xb;
    }

    public void setXb(String xb) {
        this.xb = xb;
    }

    public String getSfzhm() {
        return sfzhm;
    }

    public void setSfzhm(String sfzhm) {
        this.sfzhm = sfzhm;
    }

    public Date getCjsj() {
        return cjsj;
    }

    public void setCjsj(Date cjsj) {
        this.cjsj = cjsj;
    }

    public Date getXgsj() {
        return xgsj;
    }

    public void setXgsj(Date xgsj) {
        this.xgsj = xgsj;
    }
}